<?php 
require_once(dirname(__FILE__).'/MySQLDomain.php');
class ScheduleDomain extends MySQLDomain {

	public static $CollectionName="schedule";

	public function __construct($data) {
		parent::__construct($data, ScheduleDomain::$CollectionName, "scheduleID");
		$this->correctValue();
	}

	public function getScheduleID() {
		return $this->getField("scheduleID");
	}
	public function setScheduleID($scheduleID) {
		$this->setField("scheduleID", $scheduleID);
	}

	public function getDwoNumber() {
		return $this->getField("dwoNumber");
	}
	public function setDwoNumber($dwoNumber) {
		$this->setField("dwoNumber", $dwoNumber);
	}

	public function getDeliveryDate() {
		return $this->getField("deliveryDate");
	}
	public function setDeliveryDate($deliveryDate) {
		$this->setField("deliveryDate", $deliveryDate);
	}

	public function getDeliveryTime() {
		return $this->getField("deliveryTime");
	}
	public function setDeliveryTime($deliveryTime) {
		$this->setField("deliveryTime", $deliveryTime);
	}

	public function getCollectionDate() {
		return $this->getField("collectionDate");
	}
	public function setCollectionDate($collectionDate) {
		$this->setField("collectionDate", $collectionDate);
	}

	public function getCollectionTime() {
		return $this->getField("collectionTime");
	}
	public function setCollectionTime($collectionTime) {
		$this->setField("collectionTime", $collectionTime);
	}

	public function getTransportDriver() {
		return $this->getField("transportDriver");
	}
	public function setTransportDriver($transportDriver) {
		$this->setField("transportDriver", $transportDriver);
	}

	public function getJobDescription() {
		return $this->getField("jobDescription");
	}
	public function setJobDescription($jobDescription) {
		$this->setField("jobDescription", $jobDescription);
	}

	public function getCollectionDateLive() {
		return $this->getField("collectionDateLive");
	}
	public function setCollectionDateLive($collectionDateLive) {
		$this->setField("collectionDateLive", $collectionDateLive);
	}

	public function getCollectionTimeLive() {
		return $this->getField("collectionTimeLive");
	}
	public function setCollectionTimeLive($collectionTimeLive) {
		$this->setField("collectionTimeLive", $collectionTimeLive);
	}

	public function getTransportDriverLive() {
		return $this->getField("transportDriverLive");
	}
	public function setTransportDriverLive($transportDriverLive) {
		$this->setField("transportDriverLive", $transportDriverLive);
	}

	public function getJobDescriptionLive() {
		return $this->getField("jobDescriptionLive");
	}
	public function setJobDescriptionLive($jobDescriptionLive) {
		$this->setField("jobDescriptionLive", $jobDescriptionLive);
	}

	public function getStatus() {
		return $this->getField("status");
	}
	public function setStatus($status) {
		$this->setField("status", $status);
	}
	
	public function getIsSent() {
		return $this->getField("isSent");
	}
	public function setIsSent($isSent) {
		$this->setField("isSent", $isSent);
	}
	
	public function correctValue()
	{
		if($this->getCollectionDate()== null)
		{
			$this->setCollectionDate("00-00-0000");
		}
		if($this->getCollectionTime()== null)
		{
			$this->setCollectionTime("00:00:00");
		}
		if($this->getCollectionDateLive()== null)
		{
			$this->setCollectionDateLive("00-00-0000");
		}
		if($this->getCollectionTimeLive()== null)
		{
			$this->setCollectionTimeLive("00:00:00");
		}
		if($this->getDeliveryDate()== null)
		{
			$this->setDeliveryDate("00-00-0000");
		}
		if($this->getDeliveryTime()== null)
		{
			$this->setDeliveryTime("00:00:00");
		}
		if($this->getStatus()== null)
		{
			$this->setStatus(0);
		}
		if($this->getIsSent()== null)
		{
			$this->setIsSent(0);
		}
	}

}
?>